<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>易控-系统消息</title>
{literal}
<style type="text/css">
body, div, h1{margin:0; padding:0;}
.content{width:500px; margin:100px auto 0 auto; text-align:center; border:1px solid #ddd; padding:20px;}
h1{margin-bottom:10px; color:#d9534f;}
.error{color:#d9534f;}
.success{color:#5cb85c;}
</style>
{/literal}
</head>
<body>
	<div class="content">
		<h1 class="{if isset($type)}{$type}{/if}">{$title}</h1>
		<div>{$msg}</div>
		<div><span  id="tS">5秒后</span>自动返回…</div>
	</div>
	{literal}
	<script type="text/javascript">
		function gid(id) { return document.getElementById ? document.getElementById(id) : null; }
		function timeDesc() {
			if (all <= 0) {
				history.go(-1);
			}
			var obj = gid("tS");
			if (obj) obj.innerHTML = all + " 秒后";
			all--;
		}
		var all = 4;
		if (all > 0) window.setInterval("timeDesc();", 1000);
	</script> 
	{/literal}
</body>
</html>